<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>注册</title>
    <link rel="stylesheet" href="./css/login.css">
</head>
<body>
<div class="box log reg">
    <form action="./register.php" method="post" class="log-form">
        <h1>注册</h1>
        <p><span>用户名：</span><input type="text" name="username"></p>
        <p><span>密&emsp;码：</span><input type="password" name="pwd"></p>
        <p><span>手机号：</span><input type="text" name="phone"></p>
        <p><span>年&emsp;龄：</span><input type="text" name="age"></p>
        <p><span>性&emsp;别：</span>
            <label>
                <input type="radio" name="sex" value="0">男
                <input type="radio" name="sex" value="1">女
            </label>
        </p>
        <p><span>角&emsp;色：</span>
            <select name="role">
                <option value="2">用户</option>
                <option value="1">管理员</option>
            </select>
        </p>
        <p style="color: red">
            <?=setMsg($errMsg)?>
        </p>
        <p><input type="submit" value="立即注册"></p>
        <p><span>已有账号？</span><a href="./login.php">请登录</a></p>
    </form>
</div>

</body>
</html>